﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Framework;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CodeFirstDomain.Model
{
    public class AttentionRelation : DbEntity, IAggregateRoot
    {
        [Key, Column(Order = 0)]
        public int AttentionID { get; set; }
        [ForeignKey("AttentionID")]
        public virtual Account Attention { get; set; }

        [Key, Column(Order = 1)]
        public int FanID { get; set; }

        [ForeignKey("FanID")]
        public virtual Account Fan { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
